package com.gxa.guahaoclient02.controller;

import com.gxa.guahaoclient02.service.GuaHaoJiLuService;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
import io.swagger.annotations.*;

import javax.annotation.Resource;
import java.util.Map;

/**
 * 患者挂号记录(GuaHaoJiLu)表控制层
 *
 * @author makejava
 * @since 2021-03-16 11:27:35
 * @version 1.0
 */
@RestController
@RequestMapping(value = "guaHaoJiLu",produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
@Api(value = "患者挂号记录(GuaHaoJiLu)管理",tags = "患者挂号记录(GuaHaoJiLu)管理接口API")
@ApiResponses({
        @ApiResponse(code=400,message="请求参数不完整或者错误"),
        @ApiResponse(code=404,message="找不到页面"),
        @ApiResponse(code=405,message="请求方式不正确，比如后台接收是post，但前端请求的是get"),
        @ApiResponse(code=406,message="页面地址和接口名冲突"),
        @ApiResponse(code=415,message="请求格式不正确，前端可能没有把请求头修改为json，也可能前端请求的json对象没有转换为字符串"),
        @ApiResponse(code=500,message="后台服务逻辑错误")
})
public class GuaHaoJiLuController {
    /**
     * 服务对象
     */

    @Resource
    private GuaHaoJiLuService guaHaoJiLu;



    /**
     * 通过主键查询单条数据
     * @return 单条数据
     */
    @GetMapping( "/chaXunDayCount")
    @ApiOperation(value = "查询每日挂号记录接口",notes = "查询每日挂号个数",httpMethod = "GET")

    public Map<String, Object> chaXunDayCount() {
        return guaHaoJiLu.chaXunDayCount();
    }

    /**
     * 通过主键查询单条数据
     * @return 单条数据
     */
    @GetMapping( "/chaXunDayPayment")
    @ApiOperation(value = "查询每日挂号记录接口",notes = "查询每日挂号个数",httpMethod = "GET")

    public Map<String, Object> chaXunDayPayment() {
        return guaHaoJiLu.chaXunDayPayment();
    }

    /**
     * 通过主键查询单条数据
     * @return 单条数据
     */
    @GetMapping( "/chaXunDayPaymentById")
    @ApiOperation(value = "查询每日挂号记录接口",notes = "查询每日挂号个数",httpMethod = "GET")
    @ApiModelProperty(value = "用于查询的账号id",name="id",dataType = "String")

    public Map<String, Object> chaXunDayPaymentById(String id) {
        return guaHaoJiLu.chaXunDayPaymentById(id);
    }

    /**
     * 通过主键查询单条数据
     * @return 单条数据
     */
    @GetMapping( "/chaXunMonthCount")
    @ApiOperation(value = "查询每日挂号记录接口",notes = "查询每日挂号个数",httpMethod = "GET")

    public Map<String, Object> chaXunMonthCount() {
        return guaHaoJiLu.chaXunMonthCount();
    }

    /**
     * 通过主键查询单条数据
     * @return 单条数据
     */
    @GetMapping( "/chaXunMonthPayment")
    @ApiOperation(value = "查询每日挂号记录接口",notes = "查询每日挂号个数",httpMethod = "GET")

    public Map<String, Object> chaXunMonthPayment() {
        return guaHaoJiLu.chaXunMonthPayment();
    }

    @GetMapping( "/chaXunMonthPaymentRecord")
    public Map<String, Object> chaXunMonthPaymentRecord() {
        return guaHaoJiLu.chaXunMonthPaymentRecord();
    }

    @GetMapping( "/chaXunMonthCountRecord")
    public Map<String, Object> chaXunMonthCountRecord() {
        return guaHaoJiLu.chaXunMonthCountRecord();
    }

    /**
     * 通过主键查询单条数据
     * @return 单条数据
     */
    @GetMapping( "/chaXunMonthPaymentById")
    @ApiOperation(value = "查询每日挂号记录接口",notes = "查询每日挂号个数",httpMethod = "GET")
    @ApiModelProperty(value = "用于查询的账号id",name="id",dataType = "String")
    public Map<String, Object> chaXunMonthPaymentById(String id) {
        return guaHaoJiLu.chaXunMonthPaymentById(id);
    }

    @GetMapping("/check")
    public void check(){
        guaHaoJiLu.check();

    }


}